package com.example.xadmin.controller;


import com.alibaba.fastjson.JSONArray;
import com.example.xadmin.common.Result;
import com.example.xadmin.service.SysPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Administrator
 * @since 2020-04-05
 */
@RestController
@RequestMapping("/sys-permission")
public class SysPermissionController {

    @Autowired
    public SysPermissionService sysPermissionService;

    @GetMapping("/list-all-permission")
    public Result<JSONArray> listAllPermission(){
        return sysPermissionService.listAllPermission();

    }


}

